            </div>

            <div id="column2">

                <h3>Search</h3>
                <form id="search" action="<?php echo $WCDATA["search_url"]; ?>" method="get">
                    <input type="text" name="q" id="q"><input type="submit" id="submit" value="Go">
                </form>

                <h3>Tags</h3>
                <ul>
                    <?php foreach($WCDATA["tags"] as $tag) { ?>
                        <li><a href="<?php echo $tag["url"]; ?>"><?php echo $tag["tag"]; ?> (<?php echo $tag["post_count"]; ?>)</a></li>
                    <?php } ?>
                </ul>

                <?php if(isset($WCDATA["admin"])) { ?>
                <h3>Admin</h3>
                <ul class="linklist">
                    <li><a href="<?php echo $WCDATA["admin"]["base_url"]; ?>">Dashboard</a></li>
                    <li><a href="<?php echo $WCDATA["admin"]["logout_url"]; ?>">Log Out</a></li>
                    <li><a href="<?php echo $WCDATA["admin"]["new_post_url"]; ?>">New Post</a></li>
                    <li><a href="<?php echo $WCDATA["admin"]["new_page_url"]; ?>">New Page</a></li>
                    <?php if(isset($WCDATA["admin"]["edit_post_url"])) { ?>
                        <li><a href="<?php echo $WCDATA["admin"]["edit_post_url"]; ?>">Edit Post</a></li>
                    <?php } ?>
                    <?php if(isset($WCDATA["admin"]["edit_page_url"])) { ?>
                        <li><a href="<?php echo $WCDATA["admin"]["edit_page_url"]; ?>">Edit Page</a></li>
                    <?php } ?>
                </ul>
                <?php  } ?>
            </div>

        </div>

        <div id="footer">
            <p>Powered by Wordcraft. Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
        </div>

    </div>
</div>

</body>
</html>

